package com.bdqn.t320.dao;

import com.bdqn.t320.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//标注，解释，
//@Component("userDao1")
@Repository("userDao")
public class UserDaoImp implements UserDao {

    public void addUser(String userName) {
        System.out.println("将用户保存到数据库中");
    }

    public int add(User user) {
        System.out.println("dao层进行数据库的用户添加操作");
        return 1;
    }
}